.popup {

    .main {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 80vmin;
        height: 93vmin;
        border-radius: 5vmin;
        background: url(@/assets/imgs/popup/popup-bg.png) no-repeat;
        background-size: 100% 100%;

        @mixin popupStyle {
            position: absolute;
            bottom: 0;
            width: 76vmin;
            height: 100%;
        }

        .normal {
            @include popupStyle;

            &-wrapper {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                display: grid;
                grid-template-rows: minmax(4vmin, auto) 1fr minmax(4vmin, auto);
                align-items: center;
                justify-items: center;
                width: 92%;
                height: 47vmin;
                margin-top: 2vmin;

                &-title {
                    line-height: 10vmin;
                    font-size: var(--normal-font-size);
                    font-weight: bold;
                    color: var(--popup-text-color);
                    text-align: center;
                    grid-row-start: 1;
                    grid-row-end: span 1;
                }

                &-tips {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    max-width: 90%;
                    height: 10vmin;
                    grid-row-start: 3;
                    grid-row-end: span 1;

                    &_span {
                        color: #7f7f7f;
                        font-size: 3.3vmin;
                        font-weight: bold;
                        text-align: center;
                    }
                }

                &-content {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    min-width: 32vmin;
                    max-width: 50vmin;
                    min-height: 25vmin;
                    background-color: #fff;
                    border-radius: 5vmin;
                    box-shadow: 0px 1vmin 2vmin var(--box-shadow-color);
                    grid-row-start: 2;
                    grid-row-end: span 1;
                }

                &-btn {
                    position: absolute;
                    left: 50%;
                    transform: translateX(-50%);
                    bottom: 5vmin;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 60%;
                    height: 10vmin;
                    background-color: #f9e569;
                    color: #BA3515;
                    font-size: var(--middle-font-size);
                    font-weight: bold;
                    border-radius: 999px;
                    box-shadow: 0px 1vmin 2vmin rgba(0, 0, 0, .1);
                }
            }
        }
    }

    // 任务文字弹窗
    .popup-task-main {
        height: 110vmin;
        background: none !important;
        padding-top: 7vmin;

        &-part {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 80vmin;
            height: 70vmin;
            border-radius: 5vmin;
            background: linear-gradient(to bottom, #FBACB3, #F64C72);

            &::before {
                content: "";
                position: absolute;
                left: 50%;
                transform: translate(-37%, -35vmin);
                width: 55vmin;
                height: 52vmin;
                background: url('@/assets/imgs/popup/task-popup-icon.png') no-repeat center center;
                background-size: contain;
                z-index: 1;
            }

            &-wrapper {
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                width: 78%;
                height: 37vmin;
                background-color: #FBF6F0;
                border-radius: 4vmin;
                z-index: 2;
                transform: translateY(-6vmin);
            }

            &-btn {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                bottom: 5vmin;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 60%;
                height: 13vmin;
                font-size: var(--middle-font-size);
                font-weight: bold;
                border-radius: 999px;
                box-shadow: 0px 1vmin 2vmin rgba(0, 0, 0, .1);
                color: #C16841;
                background: linear-gradient(to bottom, #FCEAD7, #F3BBAC);
                z-index: 3;
            }
        }
    }

    // 提现文字弹窗
    .withdraw {
        background: none;

        &-main {
            position: relative;

            &-bg {
                width: 80vmin;
            }

            &-slot {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -65%);
                display: flex;
                align-items: center;
                justify-content: center;
                width: 46vmin;
                height: 30vmin;
            }
        }

        &-btn {
            position: absolute;
            left: 50%;
            bottom: 0;
            transform: translate(-50%, -7vmin);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 35vmin;
            height: 10vmin;
            border-radius: 999vmin;
            font-weight: bold;
            font-size: var(--middle-font-size);
        }

        .success {
            @extend .withdraw-btn;
            background-color: #fd6f90;
        }

        .fail {
            @extend .withdraw-btn;
            background-color: #2a2a2a;
        }
    }
}

.popup-slot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    &-rewards {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        height: 20vmin;
        &-item {
            display: flex;
            align-items: center;
            img {
                width: 7.5vmin;
                margin-right: 1vmin;
            }
            span {
                font-size: var(--small-font-size);
            }
        }
    }

    >img {
        width: 12vmin;
        height: auto;
    }

    >span {
        font-size: var(--normal-font-size);
        font-weight: bold;
        text-align: center;
        margin-top: 2vmin;
    }
}